Install css api test again
authorMatthias Clasen <mclasen@redhat.com>
Tue, 10 Oct 2017 03:35:19 +0000 (23:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 10 Oct 2017 03:35:19 +0000 (23:35 -0400)
testsuite/css/meson.build

index e90cd77c96b024d2f0c03e23a2b853833f9cfea8..e3f6fb385a95b88db5eec80531bb3d15fa08d763 100644 (file)
@@ -2,5 +2,22 @@ subdir('parser')
 subdir('nodes')
 subdir('style')
 
-test_api = executable('api', 'api.c', dependencies: libgtk_dep)
+gtk_libexecdir = join_paths(gtk_prefix, get_option('libexecdir'))
+testdatadir = join_paths(gtk_datadir, 'installed-tests/gtk4')
+testexecdir = join_paths(gtk_libexecdir, 'installed-tests/gtk4/css')
+
+test_api = executable('api', 'api.c',
+                      install: get_option('install-tests'),
+                      install_dir: testexecdir,
+                      dependencies: libgtk_dep)
 test('css/api', test_api)
+
+if get_option('install-tests')
+  conf = configuration_data()
+  conf.set('libexecdir', gtk_libexecdir)
+  configure_file(input: 'api.test.in',
+                 output: 'api.test',
+                 configuration: conf,
+                 install_dir: testdatadir)
+endif
+